package it.polimi.digitalstate.manager;

import it.polimi.digitalstate.dto.CitizenDTO;
import it.polimi.digitalstate.dto.UserDTO;

import javax.ejb.Local;

@Local
public interface AuthenticationManagerLocal {
	/**
	 * Check if the a user is logged
	 * @return true if is logged
	 */
	public boolean isLogged();
	 /**
	  * Give the UserDTO of the registered user
	  * @return
	  */
	public UserDTO getLoggedUser();
	/**
	 * Gives the CitizenDTO of the logged user
	 * @return
	 */
	public CitizenDTO getLoggedCitizen();
	/**
	 * Gives the information about if the logged user is a citizen or not
	 * @return true if is a citizen
	 */
	public boolean aCitizenIsLogged();
}
